Use window-full-width-p instead of comparing frame-width and
authorMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:49:21 +0000 (05:49 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 8 Aug 2007 05:49:21 +0000 (05:49 +0000)
window-width.

lisp/mouse-drag.el

index f1d56eccc667c0861396fbcdc74cb4078c2b92c5..bfb199ab897721a6e50f40af75bbff78c5dd2293 100644 (file)
@@ -158,7 +158,7 @@ Keep the cursor on the screen as needed."
 Basically, we check for existing horizontal scrolling."
   (or truncate-lines
       (> (window-hscroll (selected-window)) 0)
-      (< (window-width) (frame-width))
+      (not (window-full-width-p))
       (and
        mouse-drag-electric-col-scrolling
        (save-excursion  ;; on a long line?